//
//  CommentTableViewCell.m
//  PeopleStreet
//
//  Created by 辰领科技 on 16/1/16.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "CommentTableViewCell.h"

@implementation CommentTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        //图片
        _headImage = [[UIImageView alloc]initWithFrame:flexibleFrame(CGRectMake(15, 10, 28, 28), NO)];
        _headImage.layer.cornerRadius = 14*VerticalRatio();
        _headImage.layer.masksToBounds = YES;
        [self.contentView addSubview:_headImage];
        
        
        //名字
        _personName = [[UILabel alloc]initWithFrame:flexibleFrame(CGRectMake(50, 16, 165, 20), NO)];
        _personName.textAlignment = NSTextAlignmentLeft;
        _personName.textColor = [UIColor colorWithWhite:0.090 alpha:1.000];
        _personName.font = [UIFont systemFontOfSize:16*VerticalTexeRatio()];
        [self.contentView addSubview:_personName];
        
        //评论
        _commentWords = [[UILabel alloc]initWithFrame:flexibleFrame(CGRectMake(15, 66, 280, 0), NO)];
        _commentWords.numberOfLines = 0;
        _commentWords.textAlignment = NSTextAlignmentLeft;
        _commentWords.textColor = [UIColor colorWithWhite:0.282 alpha:1.000];
        _commentWords.font = [UIFont systemFontOfSize:14*VerticalTexeRatio()];
        [self.contentView addSubview:_commentWords];
        
        //商品属性
        _propertyLabel = [[UILabel alloc]initWithFrame:flexibleFrame(CGRectMake(15, 75, 280, 0), NO)];
        _propertyLabel.numberOfLines = 0;
        _propertyLabel.textAlignment = NSTextAlignmentLeft;
        _propertyLabel.textColor = [UIColor colorWithWhite:0.753 alpha:1.000];
        _propertyLabel.font = [UIFont systemFontOfSize:13*VerticalTexeRatio()];
        [self.contentView addSubview:_propertyLabel];
        

        _timeLabel = [[UILabel alloc]initWithFrame:flexibleFrame(CGRectMake(0, 20, 305, 15), NO)];
        _timeLabel.textAlignment = NSTextAlignmentRight;
        _timeLabel.textColor = [UIColor colorWithWhite:0.753 alpha:1.000];
        _timeLabel.font = [UIFont systemFontOfSize:13*VerticalTexeRatio()];
        [self.contentView addSubview:_timeLabel];
        
        
        
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
